import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import TypeNav from '@/pages/Home/TypeNav'
import { reqCategoryList, reqGetBannerList, reqFloorList, reqGetSearchInfo } from '@/api/index.js'
import './mock/mockserer'
import 'swiper/css/swiper.css'
import Carousel from '@/components/Carousel'
Vue.component(TypeNav.name, TypeNav)
Vue.use(reqCategoryList)
Vue.use(reqFloorList)
Vue.use(reqGetBannerList)
Vue.component(Carousel.name, Carousel)
console.log(reqGetSearchInfo())

Vue.config.productionTip = false
// console.log(this)
new Vue({
  beforeCreate () {
    Vue.prototype.$bus = this
  },
  // 注册路由,并且为组件配置$router
  router,
  store,
  // 注册仓库,vue属性多一个$store属性
  render: (h) => h(App)
}).$mount('#app')
